﻿using System;
using System.Runtime.Serialization;
using JTLeigh.Commerce.Spencer.Core.Service.Contracts;

namespace JTLeigh.Commerce.Spencer.Features.ProductFeedback.Service.Contracts.Runtime.GetProductFeedback
{

	/// <summary>
	/// Request data contract for the <see cref="IProductFeedbackRuntimeService.GetProductFeedback"/>
	/// operation.
	/// </summary>
	[DataContract(Name = "GetProductFeedbackReq", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Features/ProductFeedback/1.0/Runtime/GetProductFeedback/")]
	public class GetProductFeedbackRequest : RequestBase
	{

		#region Properties

        /// <summary>
        /// Gets or sets the fully-qualified product identifier of the product whose feedback is 
        /// to be retrieved.
        /// </summary>
        /// <value>A <see cref="FullyQualifiedProductId"/> object.</value>
        [DataMember(Name = "ProductId", IsRequired = true)]
        public FullyQualifiedProductId ProductId { get; set; }

        /// <summary>
        /// Gets or sets the optional name of the selection behavior to use to select the product 
        /// feedback.
        /// </summary>
        /// <value>The name of a selection behavior.</value>
        [DataMember(Name = "SelectionBehaviorName", IsRequired = true)]
        public string SelectionBehaviorName { get; set; }

        /// <summary>
        /// Gets or sets the optional pagination behavior to use to paginate the product feedback.
        /// </summary>
        /// <value>A <see cref="PaginationBehavior"/> object, or <see langref="null"/> if the product
        /// feedback should not be paginated.</value>
        [DataMember(Name = "PaginationBehavior", IsRequired = false)]
        public PaginationBehavior PaginationBehavior { get; set; }

        #endregion // Properties

	}

}
